using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Webcar.Car
{
    public partial class CarDiscard : PageBase
    {
        protected string carno
        {
            get { return Request.QueryString["carno"]; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack)
                return;
            this.CarDiscard1.InitCarInfo(this.carno);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (!this.CarDiscard1.SaveCarInfo())
                return;
            this.CloseDialogAndRefreshParent();
        }
    }
}
